<?php
// 群聊
use think\facade\Route;

Route::group('group', function () {
    Route::group('group', function () {
        Route::any('groupUserArr', 'group.Group/groupUserArr');
        Route::any('joinGroup', 'group.Group/joinGroup');
        Route::any('kickOutGroup', 'group.Group/kickOutGroup');
        Route::any('modifyGroupTitle', 'group.Group/modifyGroupTitle');
        Route::any('getGroupInfo', 'group.Group/getGroupInfo');
        Route::any('modifyGroupNotice', 'group.Group/modifyGroupNotice');
        Route::any('getNoticeIsRead', 'group.Group/getNoticeIsRead');
        Route::any('setNoticeIsRead', 'group.Group/setNoticeIsRead');
        Route::any('dissolveGroup', 'group.Group/dissolveGroup');
    });
    Route::group('eval', function () {
        Route::any('orderIsNeedEval', 'group.Evaluate/orderIsNeedEval');
        Route::any('overOrderRemind', 'group.Evaluate/overOrderRemind');
        Route::any('setEvalRemind', 'group.Evaluate/setEvalRemind');
    });
    Route::group('subOrder', function () {
        Route::any('createSubOrder', 'group.SubOrder/createSubOrder');
        Route::any('getSubOrderDetail', 'group.SubOrder/getSubOrderDetail');
        Route::any('getSubOrderList', 'group.SubOrder/getSubOrderList');
        Route::any('setSubOrderStatus', 'group.SubOrder/setSubOrderStatus');
    });
    Route::group('chatVoice', function () {
        Route::any('call', 'group.ChatVoice/call');
        Route::any('accept', 'group.ChatVoice/accept');
        Route::any('refuse', 'group.ChatVoice/refuse');
        Route::any('hangup', 'group.ChatVoice/hangup');
        Route::any('getVideoGroupUser', 'group.ChatVoice/getVideoGroupUser');
    });
})->allowCrossDomain()->middleware('ApiAuth');